package com.yifeng.repo.storage.redis.configure;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * Created by daibing on 2022/8/9.
 */
@Data
@ConfigurationProperties(prefix = "yfcloud.storage.redis")
public class RedisProperties {
    /**
     * redis://[:password]@host:port/db
     */
    private String uri = "redis://:123456@127.0.0.1:6379/0";
    private int maxTotal = 8;
    private int maxIdle = 8;
    private int minIdle = 0;
    private int maxWaitMillis = 1500;
    private boolean testOnBorrow = true;

}
